package com.denta.myapplication;

import android.os.Build;

import androidx.annotation.RequiresApi;

import java.util.Arrays;
import java.util.List;

public class TestArray {
    @RequiresApi(api = Build.VERSION_CODES.N)
    public static void main(String[] args) {
        List<String> list = Arrays.asList("xuxiaoxiao", "xudada", "xuzhongzhong");
        list.forEach(value -> System.out.println(value));
    }
    /* 输出：
     * xuxiaoxiao
     * xudada
     * xuzhongzhong
     */
}
